<?php
//debug($Dmdform);


if ($Dmdform['Dmdform']['is_new_jobfunction']==0):
    $jf=$jf[$Dmdform['Dmdform']['user_jobfunction_id']];
else:
    $jf=$Dmdform['Dmdform']['user_jobfunction_title'];
endif;  

?>
<?php   
    if (isset($Dmdform['Dmdform']['user_jobprofile1_id'])):
?>
<table class="showFields">
    
    <tr>
        <th><?php __('Job function')  ?></th>
        <td><?php echo $jf; ?></td>
    </tr>
    
    <tr>
        <th><?php __('Job profile 1')  ?></th>
        <td><?php echo $jps[$Dmdform['Dmdform']['user_jobprofile1_id']];  ?></td>
    </tr>

    <tr>
        <th><?php __('Job profile 2')  ?></th>
        <td><?php isset($jps[$Dmdform['Dmdform']['user_jobprofile2_id']])?e($jps[$Dmdform['Dmdform']['user_jobprofile2_id']]):e('');  ?></td>
    </tr>
    <tr>
        <th><?php __('Job profile 3')  ?></th>
        <td><?php isset($jps[$Dmdform['Dmdform']['user_jobprofile3_id']])?e($jps[$Dmdform['Dmdform']['user_jobprofile3_id']]):e('');  ?></td>
    </tr>
    <tr>
        <th><?php __('Profile Reference')  ?></th>
        <?php if($Dmdform['Dmdform']['is_new_profile_reference']):  ?>
        <td><?php  echo $Dmdform['Dmdform']['profile_reference_name'];  ?></td>
        <?php else:  ?>
        <td><?php echo $users[$Dmdform['Dmdform']['profile_reference_user_id']]; ?></td>
        <?php endif;  ?>
    </tr>

</table>
<?php else:  ?>
<?php if(count($ujps)>0):  ?>
<table class="showFields">
    
    <tr>
        <th><?php __('Job function')  ?></th>
        <td><?php echo $jf; ?></td>
    </tr>
    <?php $i=0;foreach($ujps as $jp):  ?>
     <tr>
        <th><?php __('Job profile '.($i++),true)  ?></th>
        <td><?php echo $jp;  ?></td>
    </tr>
    <?php endforeach;  ?>
   

   

</table>
<?php else:  ?>
<div class="informDivError">
    <?php __('No Data !')  ?>
</div>    
<?php endif;  ?>
<?php endif;  ?>